package org.lq.shopping.entity;

import java.io.Serializable;
import java.sql.Date;
/**
 * 入库信息实体类
 * @author 郭萌萌
 * @时间 2018年9月26日
 * @项目 Shopping_LQ
 */
public class ShopStock implements Serializable{

	/**
	 * 序列版本号
	 */
	private static final long serialVersionUID = 3039743293474251839L;
	
	private int stock_id;
	private int goods_id;
	private int stock_num;
	private Date stock_time;
	private String stock_person;
	
	public int getStock_id() {
		return stock_id;
	}
	public void setStock_id(int stock_id) {
		this.stock_id = stock_id;
	}
	public int getGoods_id() {
		return goods_id;
	}
	public void setGoods_id(int goods_id) {
		this.goods_id = goods_id;
	}
	public int getStock_num() {
		return stock_num;
	}
	public void setStock_num(int stock_num) {
		this.stock_num = stock_num;
	}
	public Date getStock_time() {
		return stock_time;
	}
	public void setStock_time(Date stock_time) {
		this.stock_time = stock_time;
	}
	public String getStock_person() {
		return stock_person;
	}
	public void setStock_person(String stock_person) {
		this.stock_person = stock_person;
	}
	
	@Override
	public String toString() {
		return "ShopStock [stock_id=" + stock_id + ", goods_id=" + goods_id + ", stock_num=" + stock_num
				+ ", stock_time=" + stock_time + ", stock_person=" + stock_person + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + goods_id;
		result = prime * result + stock_id;
		result = prime * result + stock_num;
		result = prime * result + ((stock_person == null) ? 0 : stock_person.hashCode());
		result = prime * result + ((stock_time == null) ? 0 : stock_time.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ShopStock other = (ShopStock) obj;
		if (goods_id != other.goods_id)
			return false;
		if (stock_id != other.stock_id)
			return false;
		if (stock_num != other.stock_num)
			return false;
		if (stock_person == null) {
			if (other.stock_person != null)
				return false;
		} else if (!stock_person.equals(other.stock_person))
			return false;
		if (stock_time == null) {
			if (other.stock_time != null)
				return false;
		} else if (!stock_time.equals(other.stock_time))
			return false;
		return true;
	}
	
	
	
	
}
